#ifndef		_GP_LOG_
#define		_GP_LOG_

#ifdef __cplusplus
extern "C" {
#endif


void	gpLog_openR( char *dir, char *file );
void	gpLog_open( char *file );

void	gpLog_close();

void	gpLog( const char *format, ... );

void	gpTrace( int mode, const char *format, ... );


#ifdef _GPLOG
#define	GPLOG_OPEN( file )	gpLog_open( file )
#define	GPLOG_OPENR( dir, file )	gpLog_openR( dir, file )
#define	GPLOG_CLOSE()		gpLog_close();
#define	GPLOG( prm )		gpLog prm
#define	GPTRACE( prm )		gpTrace prm
#else
#define	GPLOG_OPEN( file )
#define	GPLOG_OPENR( dir, file )
#define	GPLOG_CLOSE()		
#define	GPLOG( prm )
#define	GPTRACE( prm )
#endif

#ifdef __cplusplus
}
#endif
#endif